package com.lin.cms.domain;

import java.io.Serializable;

public class ContentCount implements Serializable {

	private static final long serialVersionUID = 1L;

	private int contentId;

	private int views;

	private int viewsMonth;

	private int viewsWeek;

	private int viewsDay;

	private int comments;

	private int commentsMonth;

	private int commentsWeek;

	private int commentsDay;

	private int downloads;

	private int downloadsMonth;

	private int downloadsWeek;

	private int downloadsDay;

	private int ups;

	private int upsMonth;

	private int upsWeek;

	private int upsDay;

	private int downs;

	public ContentCount() {
	}

	public int getContentId() {
		return contentId;
	}

	public void setContentId(int contentId) {
		this.contentId = contentId;
	}

	public int getViews() {
		return views;
	}

	public void setViews(int views) {
		this.views = views;
	}

	public int getViewsMonth() {
		return viewsMonth;
	}

	public void setViewsMonth(int viewsMonth) {
		this.viewsMonth = viewsMonth;
	}

	public int getViewsWeek() {
		return viewsWeek;
	}

	public void setViewsWeek(int viewsWeek) {
		this.viewsWeek = viewsWeek;
	}

	public int getViewsDay() {
		return viewsDay;
	}

	public void setViewsDay(int viewsDay) {
		this.viewsDay = viewsDay;
	}

	public int getComments() {
		return comments;
	}

	public void setComments(int comments) {
		this.comments = comments;
	}

	public int getCommentsMonth() {
		return commentsMonth;
	}

	public void setCommentsMonth(int commentsMonth) {
		this.commentsMonth = commentsMonth;
	}

	public int getCommentsWeek() {
		return commentsWeek;
	}

	public void setCommentsWeek(int commentsWeek) {
		this.commentsWeek = commentsWeek;
	}

	public int getCommentsDay() {
		return commentsDay;
	}

	public void setCommentsDay(int commentsDay) {
		this.commentsDay = commentsDay;
	}

	public int getDownloads() {
		return downloads;
	}

	public void setDownloads(int downloads) {
		this.downloads = downloads;
	}

	public int getDownloadsMonth() {
		return downloadsMonth;
	}

	public void setDownloadsMonth(int downloadsMonth) {
		this.downloadsMonth = downloadsMonth;
	}

	public int getDownloadsWeek() {
		return downloadsWeek;
	}

	public void setDownloadsWeek(int downloadsWeek) {
		this.downloadsWeek = downloadsWeek;
	}

	public int getDownloadsDay() {
		return downloadsDay;
	}

	public void setDownloadsDay(int downloadsDay) {
		this.downloadsDay = downloadsDay;
	}

	public int getUps() {
		return ups;
	}

	public void setUps(int ups) {
		this.ups = ups;
	}

	public int getUpsMonth() {
		return upsMonth;
	}

	public void setUpsMonth(int upsMonth) {
		this.upsMonth = upsMonth;
	}

	public int getUpsWeek() {
		return upsWeek;
	}

	public void setUpsWeek(int upsWeek) {
		this.upsWeek = upsWeek;
	}

	public int getUpsDay() {
		return upsDay;
	}

	public void setUpsDay(int upsDay) {
		this.upsDay = upsDay;
	}

	public int getDowns() {
		return downs;
	}

	public void setDowns(int downs) {
		this.downs = downs;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + contentId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ContentCount other = (ContentCount) obj;
		if (contentId != other.contentId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"contentId=" + "'" + contentId + "'" + 
			")";
	}
	
}
